<?php

class Skjb_Db_Table_Registry
{
    private static $_tables = array();
    
    public static function getTable($name)
    {
        if (!isset(self::$_tables[$name])) {
            $tableName = ucwords(substr($name, 0, -5)) . '_Table';
            self::$_tables[$name] = new $tableName();
        }
        
        return self::$_tables[$name];
    }
}